import request from '@/utils/request'

// 查询我的车房列表
export function listMyRoomAndCar(query) {
  return request({
    url: '/property-management/myRoomAndCar/list',
    method: 'get',
    params: query
  })
}

// 查询我的车房详细
export function getMyRoomAndCar(id) {
  return request({
    url: '/property-management/myRoomAndCar/' + id,
    method: 'get'
  })
}

// 新增我的车房
export function addMyRoomAndCar(data) {
  return request({
    url: '/property-management/myRoomAndCar',
    method: 'post',
    data: data
  })
}

// 修改我的车房
export function updateMyRoomAndCar(data) {
  return request({
    url: '/property-management/myRoomAndCar',
    method: 'put',
    data: data
  })
}

// 删除我的车房
export function delMyRoomAndCar(id) {
  return request({
    url: '/property-management/myRoomAndCar/' + id,
    method: 'delete'
  })
}
